package com.be.beadmin.product.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @Author: Mengyang Zhu
 * @Date: 2023/2/16 20:27
 * @Description: 柜体工序BOM信息
 */
@Table(name="T_OM_ProductProcessBomInfor")
@Getter
@Setter
@Entity
public class ProductProcessBomInfor extends BaseEntity {
    @Column(name = "productCode",columnDefinition = "VARCHAR(50) not null COMMENT '产品/柜体编号' ")
    private String productCode;

    @Column(name = "ProcessId",columnDefinition = "VARCHAR(50) COMMENT '工序ID'")
    private String processId;

    @Column(name = "ProcessSequence",columnDefinition = "VARCHAR(50) COMMENT '加工顺序号'")
    private String processSequence;

    @Column(name = "ProcessName",columnDefinition = "VARCHAR(50) COMMENT '加工工序名称'")
    private String processName;

    @Column(name = "ProcessCode",columnDefinition = "VARCHAR(50) COMMENT '加工工序编码'")
    private String processCode;

    @Column(name = "bomCode",columnDefinition = "VARCHAR(50) COMMENT 'BOM编号' ")
    private String bomCode;
    @Column(name = "bomSequence",columnDefinition = "VARCHAR(50) COMMENT 'BOM行号' ")
    private String bomSequence;
    @Column(name = "materialCode",columnDefinition = "VARCHAR(50) COMMENT '物料编码' ")
    private String materialCode;
    @Column(name = "materialName",columnDefinition = "VARCHAR(50) COMMENT '物料名称' ")
    private String materialName;
    @Column(name = "materialSpec",columnDefinition = "VARCHAR(50) COMMENT '规格' ")
    private String materialSpec;
    @Column(name = "materialQty",columnDefinition = "int COMMENT '所需物料数量' ")
    private int materialQty;
    @Column(name = "partCode",columnDefinition = "VARCHAR(50) COMMENT '产品编码:订货号？' ")
    private String partCode;
    @Column(name = "changeStatus",columnDefinition = "VARCHAR(50) COMMENT '变更状态：释放前有没有变更过，是/否' ")
    private String changeStatus;
    @Column(name = "positionNo",columnDefinition = "VARCHAR(50) COMMENT '(安装)位置号' ")
    private String positionNo;
    @Column(name = "unit",columnDefinition = "VARCHAR(50) COMMENT '单位' ")
    private String unit;


//    @Column(name = "archiveFlag",columnDefinition = "int COMMENT '归档标识,0:未归档,1:已归档' ")
//    private int archiveFlag;
//    @Column(name = "tenantId",columnDefinition = "VARCHAR(50) COMMENT '租户id' ")
//    private String tenantId;
//    @Column(name = "isolation",columnDefinition = "int COMMENT '数据隔离' ")
//    private int isolation;


}
